<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>if语句</title>        
        <script>       
           //true为女,false为男
           var sex = false;
           if(sex){
              console.log('女');
           } else {
              console.log('男');
           }
        </script>
    </head>
    <body>
    </body>
</html>



